package cn.bdqn.fast.entity;

import java.time.LocalDateTime;

/**
 * 订单表
 */
public class Orders {
    private Integer ordersId;//订单id
    private Integer userId;//用户id
    private Integer shopId;//商家id
    private Integer riderId;//骑手id
    private String number;//订单号
    private Integer addressId;//地址id
    private LocalDateTime ordersTime;//下单时间
    private LocalDateTime checkoutTime;//结账时间
    private LocalDateTime finishDate;//完成时间
    private Integer payMethod;//支付方式 1.微信,2.支付宝
    private double amount;//实收金额
    private String remark;//备注
    private String phone;//手机
    private String address;//地址
    private String usersName;//用户名字
    private String consignee;//收货人

    public Orders() {
    }

    public Orders(Integer ordersId, Integer userId, Integer shopId, Integer riderId, String number, Integer addressId, LocalDateTime ordersTime, LocalDateTime checkoutTime, LocalDateTime finishDate, Integer payMethod, double amount, String remark, String phone, String address, String usersName, String consignee) {
        this.ordersId = ordersId;
        this.userId = userId;
        this.shopId = shopId;
        this.riderId = riderId;
        this.number = number;
        this.addressId = addressId;
        this.ordersTime = ordersTime;
        this.checkoutTime = checkoutTime;
        this.finishDate = finishDate;
        this.payMethod = payMethod;
        this.amount = amount;
        this.remark = remark;
        this.phone = phone;
        this.address = address;
        this.usersName = usersName;
        this.consignee = consignee;
    }

    public Integer getRiderId() {
        return riderId;
    }

    public void setRiderId(Integer riderId) {
        this.riderId = riderId;
    }

    public LocalDateTime getFinishDate() {
        return finishDate;
    }

    public void setFinishDate(LocalDateTime finishDate) {
        this.finishDate = finishDate;
    }

    public Integer getOrdersId() {
        return ordersId;
    }

    public void setOrdersId(Integer ordersId) {
        this.ordersId = ordersId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getShopId() {
        return shopId;
    }

    public void setShopId(Integer shopId) {
        this.shopId = shopId;
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public Integer getAddressId() {
        return addressId;
    }

    public void setAddressId(Integer addressId) {
        this.addressId = addressId;
    }

    public LocalDateTime getOrdersTime() {
        return ordersTime;
    }

    public void setOrdersTime(LocalDateTime ordersTime) {
        this.ordersTime = ordersTime;
    }

    public LocalDateTime getCheckoutTime() {
        return checkoutTime;
    }

    public void setCheckoutTime(LocalDateTime checkoutTime) {
        this.checkoutTime = checkoutTime;
    }

    public Integer getPayMethod() {
        return payMethod;
    }

    public void setPayMethod(Integer payMethod) {
        this.payMethod = payMethod;
    }

    public double getAmount() {
        return amount;
    }

    public void setAmount(double amount) {
        this.amount = amount;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getUsersName() {
        return usersName;
    }

    public void setUsersName(String usersName) {
        this.usersName = usersName;
    }

    public String getConsignee() {
        return consignee;
    }

    public void setConsignee(String consignee) {
        this.consignee = consignee;
    }
}
